<!DOCTYPE html>
<html lang="zh-cn">
<head>
<meta charset="UTF-8" />
<!--title>{$Think.config.sitename}</title-->
<title>管理后台</title>

<link href="__PUBLIC__/dwz/themes/default/style.css" rel="stylesheet" type="text/css" />
<link href="__PUBLIC__/dwz/themes/css/core.css" rel="stylesheet" type="text/css" />
<link href="__PUBLIC__/ueditor/themes/default/css/ueditor.min.css"  rel="stylesheet" type="text/css" /> 
<!--[if IE]>
<link href="__PUBLIC__/dwz/themes/css/ieHack.css" rel="stylesheet" type="text/css" />
<![endif]-->

<link href="__PUBLIC__/css/admin/index.css" rel="stylesheet" type="text/css" />

<!--script src="__PUBLIC__/ueditor/ueditor.config.js" type="text/javascript" charset="utf-8"></script> 
<script src="__PUBLIC__/ueditor/ueditor.all.js" type="text/javascript" charset="utf-8"></script-->

<!--[if lte IE 9]>
<script src="__PUBLIC__/dwz/js/speedup.js" type="text/javascript"></script>
<script src="__PUBLIC__/dwz/js/html5shiv.min.js" type="text/javascript"></script>
<![endif]-->

<script src="__PUBLIC__/dwz/js/jquery-1.7.2.min.js" type="text/javascript"></script>
<script src="__PUBLIC__/dwz/js/jquery.cookie.js" type="text/javascript"></script>
<script src="__PUBLIC__/dwz/js/jquery.validate.js" type="text/javascript"></script>
<script src="__PUBLIC__/dwz/js/jquery.bgiframe.js" type="text/javascript"></script>
<script src="__PUBLIC__/dwz/js/dwz.min.js" type="text/javascript"></script>
<script src="__PUBLIC__/dwz/js/dwz.regional.zh.js" type="text/javascript"></script>

<!-- 百度地图API -->
<!--script type="text/javascript" src="http://api.map.baidu.com/api?v=1.4"></script-->

<!-- 图片编辑器 -->
<!--script src="__PUBLIC__/imageEditor/js/jquery.imgareaselect.js" type="text/javascript"></script>
<script src="__PUBLIC__/imageEditor/js/SimpleAjaxUploader.min.js" type="text/javascript"></script>
<link href="__PUBLIC__/imageEditor/css/imgareaselect-animated.css" rel="stylesheet" type="text/css" /-->

<script type="text/javascript">
/*ThinkPHP常量*/
var _APP_="__APP__";
var _PUBLIC_="__PUBLIC__";

function fleshVerify(){
	//重载验证码
	$('#verifyImg').attr("src", '__MODULE__/Public/verify/'+new Date().getTime());
}
function dialogAjaxMenu(json){
	dialogAjaxDone(json);
	if (json.statusCode == DWZ.statusCode.ok){
			//扩展
			var menuTag=$("#navMenu .selected").attr('menu');
			$("#sidebar").loadUrl("__MODULE__/Public/menu/menu/"+menuTag);
	}
}

function navTabAjaxMenu(json){
	navTabAjaxDone(json);
	if (json.statusCode == DWZ.statusCode.ok){
		//扩展
		var menuTag=$("#navMenu .selected").attr('menu');
		$("#sidebar").loadUrl("__MODULE__/Public/menu/menu/"+menuTag);
	}
}


function navTabAjaxGroupMenu(json){
	navTabAjaxDone(json);
	if (json.statusCode == DWZ.statusCode.ok){
		//扩展
		var menuTag=$("#navMenu .selected").attr('menu');
		$("#sidebar").loadUrl("__MODULE__/Public/menu/menu/"+menuTag);
	}
}


function navTabAjax(json){
	navTabAjaxDone(json);
	if (json.statusCode == DWZ.statusCode.ok){
		$("#navMenu").loadUrl("__MODULE__/Public/nav");
	}
}

function navTabAjaxDone(json){
		DWZ.ajaxDone(json);
		if(json.statusCode==DWZ.statusCode.ok){
			if(json.navTabId){
				//先判断当前的nav是否有 pagerForm，
				//有，就刷新这个nav []中的分页控件
				var $pageForm = $("form[name="+json.navTabId+"_pageForm]");
				if($pageForm.length!=0){
					console.log("刷新分页"+typeof($pageForm));
					$pageForm.submit();
				}else{
					if("closeCurrent"==json.callbackType){
						setTimeout(function(){
							navTab.closeCurrentTab();
							console.log("[navTabAjaxDone]关闭");
							console.log("[navTabAjaxDone]刷新指定Nav");
							navTab.reloadFlag(json.navTabId);
							$("li[tabid="+json.navTabId+"]").click();
						},100);
					}else if("forward"==json.callbackType){
						navTab.reload(json.forwardUrl);
					}else{
						console.log("[navTabAjaxDone]刷新本Nav");
						navTab.reloadFlag(json.navTabId);                		
					}
				}
			}

		}
	}

function navTabReload(json) {
	DWZ.ajaxDone(json);
	if(json.statusCode==DWZ.statusCode.ok){
		if (json.navTabId) {
			navTab.reloadFlag(json.navTabId);
			console.log(json.navTabId);
		};
	}
}

$(function(){

	DWZ.init("__PUBLIC__/dwz/dwz.frag.xml", {
		loginUrl:"__MODULE__/Public/login_dialog", loginTitle:"登录",	// 弹出登录对话框
		//statusCode:{ok:1,error:0},
		pageInfo:{pageNum:"pageNum", numPerPage:"numPerPage", orderField:"_order", orderDirection:"_sort"}, //【可选】
		debug:false,	// 调试模式 【true|false】
		callback:function(){
			initEnv();
			$("#themeList").theme({themeBase:"__PUBLIC__/dwz/themes"});
		}
	});
});


//百度编辑器

var UEDITOR_HOME_URL='__PUBLIC__/ueditor/',ueditor_loader={};
function editorSyn(ename){
	$.each(ueditor_loader[ename],function(i){
		this.sync(); 
	});
}

/**
 * 刷新分页
 * @internal 此方法会对框架分页进行刷新
 * @since 2014-10-11 16:06:00
 * @author FrankKung <kongfanjian@andlisoft.com>
 */
function reload() {
	navTab.reloadFlag( $(".navTab-tab li.selected").attr('tabid') );
}
</script>
<style>
/**
 * 搜索栏修正样式表
 * @internal 下方两个类会对searchBar设置固定显示的滚动条，防止错位,scrolll类放置于pageHeader相同位置
 * @since 2014-10-11 16:11:59
 * @author FrankKung <kongfanjian@andlisoft.com>
 */
.scroll {
	overflow: scroll;
	overflow-y: hidden;
	overflow-x: scroll;
}
.scroll .searchBar {
	width: 900px;
}
</style>
</head>

<body scroll="no">
	<div id="layout">
		<div id="header">
			<div class="headerNav">
				<a class="logo" href="__MODULE__">Logo</a>
				<ul class="nav">
					<li><a href="__MODULE__/Public/main" target="dialog" width="580" height="360" rel="sysInfo">系统消息</a></li>
					<li><a href="__MODULE__/Public/password/" target="dialog" mask="true">修改密码</a></li>
					<li><a href="__MODULE__/Public/profile/" target="dialog" mask="true">修改资料</a></li>
					<li><a href="__MODULE__/Public/logout/">退出</a></li>
				</ul>
				<ul class="themeList" id="themeList">
					<li theme="default"><div class="selected">蓝色</div></li>
					<li theme="green"><div>绿色</div></li>
					<li theme="purple"><div>紫色</div></li>
					<li theme="silver"><div>银色</div></li>
					<li theme="azure"><div>天蓝</div></li>
				</ul>
			</div>
		</div>
		
		<div id="leftside">
			<div id="sidebar_s">
				<div class="collapse">
					<div class="toggleCollapse"><div></div></div>
				</div>
			</div>
			
			<div id="sidebar">
				<div class="toggleCollapse"><h2>主菜单</h2><div>收缩</div></div>
				<include file="Public:menu" />
			</div>
		</div>

		<div id="container">
			<div id="navTab" class="tabsPage">
				<div class="tabsPageHeader">
					<div class="tabsPageHeaderContent"><!-- 显示左右控制时添加 class="tabsPageHeaderMargin" -->
						<ul class="navTab-tab">
							<li tabid="main" class="main"><a href="javascript:void(0)"><span><span class="home_icon">我的主页</span></span></a></li>
						</ul>
					</div>
					<div class="tabsLeft">left</div><!-- 禁用只需要添加一个样式 class="tabsLeft tabsLeftDisabled" -->
					<div class="tabsRight">right</div><!-- 禁用只需要添加一个样式 class="tabsRight tabsRightDisabled" -->
					<div class="tabsMore">more</div>
				</div>
				<ul class="tabsMoreList">
					<li><a href="javascript:void(0)">我的主页</a></li>
				</ul>
				<div class="navTab-panel tabsPageContent layoutBox">
					<div class="page unitBox">
						<div class="accountInfo">
							<div class="alertInfo">
								<h2><a target="_blank" href="{$Think.config.bbsurl}/doc/dwz-user-guide.pdf">DWZ框架使用手册(PDF)</a></h2>
								<a href="#" target="_blank">DWZ-thinkphp使用手册</a>
							</div>
							<div class="right">
								<p>{$Think.now}</p>
							</div>
							<p><span>{$Think.config.sitename}</span></p>
							<p>Welcome, {$Think.session.loginUserName}</p>
						</div>
						<div class="pageFormContent" layoutH="80">
							<p>在线演示地址 {$Think.config.demourl}</p>
							<p>DWZ框架使用手册 <a href="{$Think.config.demourl}/doc/dwz-user-guide.pdf" target="_blank">{$Think.config.demourl}/doc/dwz-user-guide.pdf</a></p>
							<p>Ajax开发视频教材 <a href="{$Think.config.demourl}/doc/dwz-ajax-develop.swf" target="_blank">{$Think.config.demourl}/doc/dwz-ajax-develop.swf</a></p>
							<p>DWZ框架演示视频 <a href="{$Think.config.demourl}/doc/dwz-user-guide.swf" target="_blank">{$Think.config.demourl}/doc/dwz-user-guide.swf</a></p>
							<p>Google Code下载 <a href="http://code.google.com/p/dwz/" target="_blank">http://code.google.com/p/dwz/</a></p>

<div class="divider"></div>
<h2>dwz_thinkphp版本介绍:</h2>
<pre style="margin: 5px; line-height: 1.4em;">
当前版本dwz_thinkphp (DWZ框架v1.4.6 Final + ThinkPHP3.1.3)
发布dwz_thinkphp主要是为了方便PHP开发者使用DWZ富客户端UI框架。
其他开发人员也可以结合php后台去理解DWZ和服务器端的交互方式。

</pre>
							<div class="divider"></div>
							<h2>有偿服务请联系:</h2>
							<p style="color:red">杜权	suport@j-ui.com</p>

						</div>

					</div>
				</div>
			</div>
		</div>

	</div>
	
	<div id="footer">Copyright &copy; 2010 <a href="http://www.j-ui.com" target="_blank">j-ui.com</a></div>


</body>
</html>